using System.Linq;
using Rogan.Utility.Linq;

namespace Rogan.Data.Linq
{
	public static class EntityQueryableExtends
	{
		public static IQueryable<T> Query<T>(this DbContext context) where T : Entity
		{
			return new Queryable<T>(new DbQueryProvider<T>(context.From<T>()));
		}
	}
}
